package org.snail.proxy.server.config;

import com.google.common.collect.Maps;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@ConfigurationProperties(prefix = "netty-servers")
public class ServerConfig {
    private Map<Integer, ServerNettyConfig> servers = Maps.newHashMap();

    public Map<Integer, ServerNettyConfig> getServers() {
        return servers;
    }

    public void setServers(Map<Integer, ServerNettyConfig> servers) {
        this.servers = servers;
    }
}
